<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="format-detection" content="telephone=no, email=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
</head>
<body>

<script src="js/ajax3.js"></script>
<script>
    ////需要判断，对象是否有url，和success，没有，
    /*
    *
    *  {
     name:"abc",
     age:20
     }
    * */
    ajax({
        url:"data/1.txt",
        type:"post",
        data:"sex=girl",
        success:function (data) {
            console.log(data)
        }
    })
</script>

</body>
</html>